<h4>

<% if task.project_id!=0%>
<%=task.project.name %>:
<% end %>

<%= task.title%>

</h4>

1) <%= link_to_function('Edit',"$('edit').show();", {:class=>'btnlnk'})%> the task if necessary
<ul id="edit" style="display:none;">
<%= render(:partial=>'task/task', :locals=>{:task=>task, :tasks=>nil})%>
</ul>

<br/>

2) choose the new state:<br/>
<%= render(:partial => 'state', :locals => {:task=>task}) %><br/>
<br/>
<br/>
<%= count %> tasks remaining...
